import { FormType, IMyFormProps } from '@/base-ui/base-form/type'
import { ActionDesc } from '@/global/constant'

const bannedSearch: IMyFormProps = {
  desc: ActionDesc.BannedSearch,
  layout: { span: 7 },
  formConfig: {
    name: 'wrap',
    size: 'middle',
    labelAlign: 'right',
    labelCol: { flex: '80px', offset: 2 },
    colon: false
  },
  itemsConfig: [
    {
      type: FormType.Input,
      prop: 'userName', //必写的，唯一标识,因为name属性不一定全部都会有
      label: '用户名',
      name: 'userName',
      input: {
        size: 'small',
        placeholder: '请输入用户名'
      }
    },
    {
      type: FormType.DatePicker,
      prop: 'createTime',
      label: '创建时间',
      name: 'createTime',
      date_picker: {
        showTime: true,
        size: 'small'
      }
    }
  ]
}

export default bannedSearch
